<%@page import="model.UserInfoBase"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<% 
	String usernamehead = (String)request.getSession().getAttribute("username");
	UserInfoBase info = (UserInfoBase) request.getSession().getAttribute(usernamehead);
	String usertype = "<p>"+"登陆用户："+usernamehead+"<br>";
	String pagename = info.pagename;
	if(info.userlevel==0){
		usertype+="用户类型：超级管理员";
	}else{
		usertype+="用户类型：普通用户";
	}
	usertype+="</p>";
%>

<style type="text/css">
.submitStyle {
background:url(assets/img/back_small.png);
border:0px;
min-width:30px;
min-height:30px;
}
</style>

<div class="header" >
    <div class="header-container">
	<div class="logo"> 
      <div>
      	<form action="Login?username=<%=usernamehead%>" method="post">
      		<%
      			if(!info.pagename.equals("用户控制台")){
      			%>
      				<button  class="submitStyle" ></button>
      			<%
      			}
      		%>
      	</form>
      </div>
      
      <a href="#"><%=pagename %></a> 
      </div>

     
      <div class="toll-free">
		<%=usertype %>
		<br>
		<p>Call us toll free: 1-800-123-4567</p><br>
		<p>-----------------------------------------</p>
      </div>
      <div class="clear"></div>
    </div>
</div>
</body>
</html>